﻿@model etracks.Web.ProjectInputFormViewModel

<div class="form-group">
    <label for="input_name" class="col-sm-2 control-label">Name</label>
    <div class="col-sm-8">
        <input type="text" class="form-control" id="input_name" name="name" placeholder="eg. Name of project" value="@Model.Name" autocomplete="off">
    </div>
</div>

<div class="form-group">
    <label for="input_name" class="col-sm-2 control-label">Alias</label>
    <div class="col-sm-8">
        <input type="text" class="form-control" id="input_alias" name="alias" placeholder="eg. A short alias for project" value="@Model.Alias" autocomplete="off">
    </div>
</div>

<div class="form-group">
    @Html.ActionLink("Type", "List", "ProjectType", null, new { @class = "col-sm-2 control-label" })
    <div class="col-sm-8">
        <select class="form-control" id="select_project_type" name="projecttypeid">
            <option value="">No selection</option>
            @foreach (etracks.EntityModels.ProjectType pt in Model.ProjectTypeList)
            {
                <option value="@pt.Id" @DataHelper.IsSelected(pt.Id, Model.ProjectTypeId)>@pt.Name</option>
            }
        </select>
    </div>
</div>

<div class="form-group">
    <label for="input_name" class="col-sm-2 control-label">Association</label>
    <div class="col-sm-8">

        <a href="@Url.Action("List", "Environment", new { id=Model.Id })" class="btn btn-info">
            <span class="glyphicon glyphicon glyphicon-option-horizontal"></span> Environment
        </a>
    </div>
</div>
